<!doctype html>
<head>
        <meta name="keywords" content="羽毛球，公告，球场，教练">
		<meta name="charset" content="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/jquery.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/bootstrap.min.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/HomePage/md5.js"></script>
		<script type="text/javascript" src="__PUBLIC__/JS/jquery-form.js"></script>
</head>		
<div class="right_box">
		<div class="content content_hastab">	
			<form class='' id='' name="" action="__APP__/Home/Announce/updateAnnounce" method="post" enctype="multipart/form-data">
				<table  style="">
                <tbody>
                   <tr>
                   	   <td>
                   		   <label >公告标题</label>
                   	   </td>
                   	   <td>
                   		   <input type="text" name="announce_title" id="announce_title" /><input type="hidden" name="announce_id" id="announce_id" ></input>
                   	   </td>
                   </tr>
                 

                   <tr>
                   	   <td>
                   		   <label >公告描述</label>
                   	   </td>
                   	   <td>
                   	   	<textarea id="announce_content" name="announce_content" rows="3" cols="20" maxlength="1000"></textarea>
                   	    </td>
                   </tr>
				  
                   <tr>
                   	   <td>
                   		   <label>公告类型</label>
                   	   </td>
                   	   <td>
                   		  <select name="announce_kind" id="announce_kind">
                                      <option value="0">松散型</option>
                                      <option value="1">紧密型</option>
                    
                           </select>
                   	   </td>
                   </tr>
                   <tr>
                        <td>
                              <label title='公告图片' for="announce_picture">公告图片</label>
                        </td>
                        <td>                
                              <input type="file" name="announce_picture" id="announce_picture"/>
                        </td>
                   </tr>
                  </tbody> 
                </table>
                <input type="submit" />
            </form>
		</div>
	</div>	
</div>
<script type="text/javascript">
 $(function(){
		$.post('__URL__/announceDetail',{'announce_id':parent.selected},function(resultList){ 			   
			   announceJson=resultList.result;
			  document.getElementById("announce_id").value=announceJson.id;
			  document.getElementById("announce_name").value=announceJson.name;
			  document.getElementById("announce_number_count").value=announceJson.announce_number_count;
			  document.getElementById("introduction").value=announceJson.introduction;
			  document.getElementById("announce_kind").value=announceJson.announce_kind;
    	     },'json');  
			
		});
</script>